package com.crm.work.controller;

import com.crm.model.pojo.User;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author 程丛林
 * @Date 2024-09-23-10:15
 * @Version 1.0.0
 * Created by CongLin-Cheng on 2024/9/23 10:15
 */
@RestController
@RequestMapping("work")
public class Test {
    @Value("${ccl.cs}")
    private String cs;

    @RequestMapping("test")
    public String test(){
        User user = new User();
        user.setName("程少" + cs);
        return user.toString();
    }

}